package com.hnn.learn.dubboconsumer.jobs;

import com.hnn.learn.api.ProvideService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author hnn
 * @version 1.0
 * @date 2025-04-22 09:41
 */
@Slf4j
@Component
public class ScheduleJob {

    @Autowired
    private ProvideService provideService;

    @Scheduled(cron = "0/5 * * * * ?")
    public void test() {
        log.info(provideService.sayHello(System.currentTimeMillis() + ""));
    }
}
